program q125;
var
    n, a, b, c, t, i: longint;
begin
    assign(input, '');
    assign(output, '');
    reset(input);
    rewrite(output);

    readln(n);
    for i:=1 to n do
    begin
        readln(a, b, c);
        if (a > b) then
        begin
            t := a; a := b; b := t;
        end;
        if (b > c) then
        begin
            t := b; b := c; c := t;
        end;

        writeln('Scenario #', i, ':');
        if (a*a + b*b = c*c) then writeln('yes')
        else writeln('no');
        writeln;
    end;

    close(input);
    close(output);
end.
